import request from '@/utils/request';

// 物业字典
export const getDictoryApi = params => {
	return request({
		url: `/property-portal/v1/api/tDict/query`,
		method: 'post',
		data: params
	});
};

export const projectListApi = (params) => {
	return request({
		url: `/property-portal/v1/api/tDevice/queryProjectList`,
		method: 'post',
		data: params
	})
}

// 清单分类
export const getAllClassificationDataApi = params => {
	return request({
		url: `/budget/inventory/categoryDropdownTree`,
		method: 'get',
	});
};

// 三级分类 ｜ 清单名称 下拉
export const getInventoryApi = params => {
	return request({
		url: `/budget/v1/api/external/classifyDown`,
		method: 'post',
		data: params,
	});
};

// 中台流程
export const processListApi = params => {
	return request({
		url: `/workOrderApp/process/query`,
		method: 'post',
		data: params,
	});
};

// 物业流程 - 根据类型
export const processTypeListApi = type => {
	return request({
		url: `/property-portal/v1/api/workOrder/processNameDropDown/${type}`,
		method: 'get',
	});
};

// 物业角色
export const roleListApi = params => {
	return request({
		url: `/property-portal/v1/api/planInspection/inspectionRoleDropDown`,
		method: 'post',
		data:params
	});
};

// 用户列表
export const userSearchApi = params => {
	return request({
		url: `/userApp/user/search`,
		method: 'post',
		data: params,
	});
};

// 查询资产使用状态是自用的库房
export const getStoreSelfUseListApi = params => {
	return request({
		url: `/invest-portal/v1/api/unit/store/queryStoreSelfUseList`,
		method: 'post',
		data: params,
	});
};